.hot-locations-banner {
  width: 100%;
  margin: 8px 0; // 与上下兄弟节点之间的合理间距
  padding: 0; // 移除内边距
  display: block; // 确保以块级元素显示

  // 确保图片也占满横幅容器
  image {
    width: 100%;
    height: auto; // 保持图片比例
  }
}

// Modal浮动效果样式 - 增强版
.ad-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6); // 更深的背景色
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; // 确保在其他元素之上
  backdrop-filter: blur(4px); // 背景模糊效果
  animation: overlayFadeIn 0.3s ease-out;
}

.ad-modal-content {
  position: relative;
  width: 85%; // 增加宽度，提高可见区域
  max-width: 550px;
  height: 600rpx; // 增加高度
  max-height: 80%; // 提高最大高度限制
  border-radius: 24px; // 更大的圆角效果，更现代感
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1); // 更强的阴影和边框效果
  animation: modalFadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); // 优化的动画曲线
  padding: 0; // 移除内边距，确保内容占满
  transition: transform 0.3s ease;
}

// 模态框悬浮效果
.ad-modal-content:hover {
  transform: translateY(-4px);
}

// 背景淡入动画
@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

// 占满整个Modal的内容区域
.modal-fill-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

// Modal标题样式
.modal-title {
  font-size: 32rpx;
  margin: 0 0 30rpx 0;
  text-align: center;
  color: #333;
  width: 100%;
  padding: 20rpx;
  box-sizing: border-box;
}

// Modal图片样式
.modal-image {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  border-radius: 0;
}

// Modal描述文字样式
.modal-description {
  font-size: 24rpx;
  margin: 20rpx 0 0 0;
  text-align: center;
  color: #666;
  width: 100%;
  padding: 0 20rpx 20rpx;
  box-sizing: border-box;
}

// 弹窗动画 - 增强版
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
}

// 增强的弹窗样式
.ad-modal-overlay.overlay-visible {
  animation: overlayFadeIn 0.3s ease-out;
}

.ad-modal-content.modal-visible {
  animation: modalFadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ad-modal-content {
  position: relative;
  // 添加点击效果
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

// 关闭按钮增强
.modal-close {
  position: absolute;
  top: 20rpx;
  right: 20rpx;
  z-index: 10;
  padding: 12rpx;
}

.close-icon-wrapper {
  width: 72rpx;
  height: 72rpx;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.close-icon-wrapper:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}

.modal-close-active .close-icon-wrapper {
  transform: scale(0.95);
}

.close-icon {
  color: #ffffff;
  font-size: 48rpx;
  font-weight: 300;
  line-height: 1;
}

// 图片样式增强
.modal-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

// 渐变遮罩层
.modal-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

// 信息内容样式增强
.modal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40rpx;
  z-index: 3;
  color: #ffffff;
}

.modal-title {
  font-size: 48rpx;
  font-weight: bold;
  margin-bottom: 20rpx;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

// 统计信息
.modal-stats {
  display: flex;
  align-items: center;
  margin-bottom: 36rpx;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 8rpx;
}

.modal-jobs-count,
.modal-companies-count {
  font-size: 36rpx;
  font-weight: bold;
  color: #ffffff;
}

.stat-label {
  font-size: 24rpx;
  opacity: 0.9;
}

.stat-divider {
  width: 1px;
  height: 30rpx;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 20rpx;
}

// 按钮样式增强 - 带动画版
.modal-button {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 16rpx;
  padding: 24rpx;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
  overflow: hidden;
  position: relative;
  animation: button-float 3s ease-in-out infinite;
}

// 按钮波纹效果
.modal-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5rpx;
  height: 5rpx;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s, opacity 0.6s;
  opacity: 0;
}

.modal-button-active::after {
  width: 400rpx;
  height: 400rpx;
  opacity: 0;
  transition: width 0.6s, height 0.6s, opacity 0.6s;
}

.button-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12rpx;
  position: relative;
  z-index: 1;
}

.modal-button-text {
  color: #ffffff;
  font-size: 32rpx;
  font-weight: 600;
  text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.button-icon {
  font-size: 28rpx;
  transition: transform 0.3s ease;
}

// 按钮悬停效果增强
.modal-button:hover {
  transform: translateY(-4rpx);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.6), 0 0 30rpx rgba(124, 58, 237, 0.3);
  background: linear-gradient(135deg, #4338ca, #6d28d9);
}

.modal-button:hover .button-icon {
  transform: translateX(8rpx) scale(1.1);
}

.modal-button:hover .modal-button-text {
  transform: scale(1.05);
}

.modal-button-active {
  transform: scale(0.98);
}

// 按钮浮动动画
@keyframes button-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4rpx);
  }
}

// 装饰性光晕和元素 - 增强版
.decorative-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

// 主要光晕效果
.decorative-glow {
  position: absolute;
  border-radius: 50%;
  animation: glow-pulse 4s ease-in-out infinite;
}

.glow-top-left {
  top: -50rpx;
  left: -50rpx;
  width: 300rpx;
  height: 300rpx;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, rgba(124, 58, 237, 0) 70%);
  animation-delay: 0s;
  animation: glow-pulse-primary 3s ease-in-out infinite;
}

.glow-bottom-right {
  bottom: -50rpx;
  right: -50rpx;
  width: 400rpx;
  height: 400rpx;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, rgba(79, 70, 229, 0) 70%);
  animation-delay: 1s;
  animation: glow-pulse-secondary 4s ease-in-out infinite;
}

// 动态装饰粒子
.decorative-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: particle-float linear infinite;
}

.particle-1 {
  top: 10%;
  right: 15%;
  width: 12rpx;
  height: 12rpx;
  animation-duration: 8s;
}

.particle-2 {
  top: 40%;
  left: 10%;
  width: 8rpx;
  height: 8rpx;
  animation-duration: 6s;
  animation-delay: 1s;
}

.particle-3 {
  bottom: 20%;
  right: 20%;
  width: 16rpx;
  height: 16rpx;
  animation-duration: 10s;
  animation-delay: 2s;
}

// 旋转装饰环
.rotating-ring {
  position: absolute;
  border: 2rpx solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: rotate linear infinite;
}

.ring-small {
  top: -100rpx;
  left: -100rpx;
  width: 200rpx;
  height: 200rpx;
  animation-duration: 15s;
  border-color: rgba(124, 58, 237, 0.3);
}

.ring-medium {
  bottom: -150rpx;
  right: -150rpx;
  width: 300rpx;
  height: 300rpx;
  animation-duration: 20s;
  animation-direction: reverse;
  border-color: rgba(79, 70, 229, 0.3);
}

// 闪光效果
.flash-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(-30deg);
  animation: flash 6s ease-in-out infinite;
  pointer-events: none;
}

// 动画关键帧
@keyframes glow-pulse-primary {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes glow-pulse-secondary {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes particle-float {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.4;
  }
  25% {
    transform: translate(40rpx, -30rpx) rotate(90deg);
    opacity: 0.6;
  }
  50% {
    transform: translate(0, -60rpx) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: translate(-40rpx, -30rpx) rotate(270deg);
    opacity: 0.6;
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
    opacity: 0.4;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes flash {
  0%, 100% {
    opacity: 0;
    transform: translateX(-100%) rotate(-30deg);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateX(100%) rotate(-30deg);
  }
}

// 城市卡片样式增强 - 动画版
.location-item {
  position: relative;
  overflow: hidden;
  border-radius: 16rpx;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: center;
}

.location-image-wrapper {
  position: relative;
  width: 100%;
  height: 200rpx;
  overflow: hidden;
}

.location-image {
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: center;
}

.location-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

// 卡片悬停效果 - 增强版
.location-item:hover {
  transform: translateY(-8rpx) scale(1.02);
  box-shadow: 0 12rpx 32rpx rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.location-item:hover .location-overlay {
  opacity: 0.5;
}

.location-item:hover .location-image {
  transform: scale(1.1);
}

.location-item:hover .location-name {
  animation: textGlow 0.8s ease-in-out infinite alternate;
}

// 文字发光动画
@keyframes textGlow {
  from {
    text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
  }
  to {
    text-shadow: 0 2rpx 12rpx rgba(255, 255, 255, 0.6);
  }
}

// 卡片入场动画 - 序列动画
.location-item {
  animation: cardFadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.location-item:nth-child(1) {
  animation-delay: 0.1s;
}

.location-item:nth-child(2) {
  animation-delay: 0.2s;
}

.location-item:nth-child(3) {
  animation-delay: 0.3s;
}

.location-item:nth-child(4) {
  animation-delay: 0.4s;
}

.location-item:nth-child(5) {
  animation-delay: 0.5s;
}

.location-item:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20rpx) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.location-name {
  position: absolute;
  bottom: 48rpx;
  left: 24rpx;
  color: #ffffff;
  font-size: 32rpx;
  font-weight: 600;
  text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
}

.location-count-badge {
  position: absolute;
  bottom: 20rpx;
  left: 24rpx;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 6rpx 14rpx;
  border-radius: 14rpx;
  backdrop-filter: blur(4rpx);
}

.location-count {
  color: #ffffff;
  font-size: 22rpx;
}

// 标题装饰
.banner-decoration {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 160rpx;
  height: 12rpx;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.1) 0%, rgba(79, 70, 229, 0.4) 100%);
  border-radius: 6rpx 0 0 6rpx;
}

.close-button {
  position: absolute;
  top: 20rpx;
  right: 20rpx;
  width: 70rpx;
  height: 70rpx;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000; // 确保在最顶层
  // 增加点击区域和触摸反馈
  padding: 10rpx;
  &:active {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
  }
}

.close-text {
  color: white;
  font-size: 24rpx;
  font-weight: 500;
}

// 适配不同屏幕大小
// 大屏幕设备
@media screen and (min-width: 768px) {
  .ad-modal-content {
    width: 70%;
    max-width: 450px;
  }
  
  .close-button {
    width: 60rpx;
    height: 60rpx;
  }
  
  .close-text {
    font-size: 22rpx;
  }
}

// 小屏幕设备（手机）
@media screen and (max-width: 767px) {
  .ad-modal-content {
    width: 85%; // 在小屏幕上占据更多空间
    margin: 0 20rpx;
  }
  
  .close-button {
    // 小屏幕上保持原尺寸，确保易于点击
    top: 15rpx;
    right: 15rpx;
  }
  
  .close-text {
    font-size: 24rpx; // 小屏幕上文字稍大，提高可读性
  }
}

// 非常小的屏幕设备
@media screen and (max-width: 320px) {
  .ad-modal-content {
    width: 90%; // 几乎占满屏幕宽度
  }
}
